﻿package java;

public class ScoreCal {
	String java;
	int c;
	int db;
	public int calcTotalScore(){
		int taotal = java + c + db;
		return taotal;
	}
	public void showTotalScore(){
		System.out.println("总成绩是:" + calcTotalScore());
	}
	public int calcAvg(){
		int avg=(java+c+db)/3;
		return avg;
	}
	public void ahowAvg(){
		System.out.println("平均成绩是:" + calcAvg);
	}
}